<!DOCTYPE>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="__PUBLIC__/Home/css/user_center.css">
    <script src="__PUBLIC__/Admin/js/jquery-1.9.1.js"></script>
    <script src="__PUBLIC__/Common/Layer/layer.js"></script>
    <title>会员中心</title>
</head>

<body>

<style>
    .layui-layer{
        top:150px !important;
    }
</style>
<!-- 栏目 -->
<include file="Public:header_center" />

<!-- 内容 -->
<div style="background-color:#f5f5f5;">
    <div class="content" style="width:1200px;">

        <include file="Public:left_center" />

        <div class="center-right right">
            <h3 class="title">我的订单 >> 退货</h3>
            <div class="Options" style=" width:1050px; background-color:#FFF; padding:20px; text-align:center; padding-top:50px;">

            <div style="font-size:16px; line-height:26px; margin-bottom:40px;">
            <form name="form" method="post" action="__SELF__">
                <table cellpadding="0" cellspacing="0" style="border:0; width:100%;">
                  <tr>
                    <td><div align="center">
                      <p>
                        <label for="textarea">退货原因</label>
                        <br/>
                        <textarea name="tuihuo_case" id="tuihuo_case" style="width:500px; height:150px; margin-top:10px;">{$result.tuihuo_case}</textarea>
                      </p>
                      <p>&nbsp;</p>
                    </div></td>
                  </tr>
                  <tr>
                    <td>
                 
                          <div align="center">
                            <input type="hidden" name="orders_id" value="{$orders_id}" />
                            <if condition="empty($result['tuihuo_time'])">
                            <input type="submit" name="button" id="button" style="width:200px; height:30px; text-align:center; " value="提交申请">
                            <else/>
                            <a href="{:U('User/my_order_lst')}"><span style="padding:10px 50px; margin-left:50px; font-size:16px; background:#4ECF5B; color:#FFF;">返回我的订单</span></a>
                            </if>
                            
                    </div></td>
                  </tr>
                </table>
            </form>
            </div>
            
            
                         
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <include file="Public:footer_center" />
</body>

<script>
    //取消订单
    function cancel_order(id){
        $.post("{:U('User/cancel_order')}", { "id": id},function(data){
            if(data==1){
                layer.msg('删除成功', {

                    time: 2000 //2秒关闭（如果不配置，默认是3秒）
                }, function(){
                    $('.tab'+id).remove();
                });
            }else{
                layer.msg('删除失败');
            }
        }, "json");
    }
</script>
</html>
